//
//  UnitNameAddition.m
//  MapEdit
//
//  Created by Steven Canfield on 7/2/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "UnitNameAddition.h"


@implementation Unit (UnitNameAddition)
static NSArray * unitNames = NULL;

- (NSString *)name {
	return [[Unit unitNames] objectAtIndex:[self type]];
}

+ (NSArray *)unitNames {
	if( unitNames == NULL ) {
		unitNames = [NSArray arrayWithObjects:@"Marine", @"Ghost", @"Vulture", @"Goliath", @"Goliath Turret", @"Siege Tank (Tank Mode)",
												@"Tank Turret(Tank Mode)", @"SCV", @"Wraith", @"Science Vessel",
										@"Gui Montang (Firebat)",
										@"Dropship",
										@"Battlecruiser",
										@"Vulture Spider Mine",
										@"Nuclear Missile",
										@"Civilian",
										@"Sarah Kerrigan (Ghost)",
										@"Alan Schezar (Goliath)",
										@"Alan Schezar Turret",
										@"Jim Raynor (Vulture)",
										@"Jim Raynor (Marine)",
										@"Tom Kazansky (Wraith)",
										@"Magellan (Science Vessel)",
										@"Edmund Duke (Siege Tank)",
										@"Edmund Duke Turret",
										@"Edmund Duke (Siege Mode)",
										@"Edmund Duke Turret",
										@"Arcturus Mengsk (Battlecruiser)",
										@"Hyperion (Battlecruiser)",
										@"Norad II (Battlecruiser)",
										@"Siege Tank (Siege Mode)",
										@"Tank Turret (Siege Mode)",
										@"Firebat",
										@"Scanner Sweep",
										@"Medic",
										@"Larva",
										@"Egg",
										@"ling",
										@"Hydralisk",
										@"Ultralisk",
										@"Broodling",
										@"Drone",
										@"Overlord",
										@"Mutalisk",
										@"Guardian",
										@"Queen",
										@"Defiler",
										@"Scourge",
										@"Torrarsque (Ultralisk)",
										@"Matriarch (Queen)",
										@"Infested ",
										@"Infested Kerrigan",
										@"Unclean One (Defiler)",
										@"Hunter Killer (Hydralisk)",
										@"Devouring One (ling)",
										@"Kukulza (Mutalisk)",
										@"Kukulza (Guardian)",
										@"Yggdrasill (Overlord)",
										@"Valkyrie Frigate",
										@"Mutalisk/Guardian Cocoon",
										@"Corsair",
										@"Dark Templar(Unit)",
										@"Devourer",
										@"Dark Archon",
										@"Probe",
										@"Zealot",
										@"Dragoon",
										@"High Templar",
										@"Archon",
										@"Shuttle",
										@"Scout",
										@"Arbiter",
										@"Carrier",
										@"Interceptor",
										@"Dark Templar(Hero)",
										@"Zeratul (Dark Templar)",
										@"Tassadar/Zeratul (Archon)",
										@"Fenix (Zealot)",
										@"Fenix (Dragoon)",
										@"Tassadar (Templar)",
										@"Mojo (Scout)",
										@"Warbringer (Reaver)",
										@"Gantrithor (Carrier)",
										@"Reaver",
										@"Observer",
										@"Scarab",
										@"Danimoth (Arbiter)",
										@"Aldaris (Templar)",
										@"Artanis (Scout)",
										@"Rhynadon (Badlands Critter)",
										@"Bengalaas (Jungle Critter)",
										@"Unused - Was Cargo Ship",
										@"Unused - Was Mercenary Gunship",
										@"Scantid (Desert Critter)",
										@"Kakaru (Twilight Critter)",
										@"Ragnasaur (Ashworld Critter)",
										@"Ursadon (Ice World Critter)",
										@"Lurker Egg",
										@"Raszagal",
										@"Samir Duran (Ghost)",
										@"Alexei Stukov (Ghost)",
										@"Map Revealer",
										@"Gerard DuGalle",
										@"Lurker",
										@"Infested Duran",
										@"Disruption Web",
										@"Command Center",
										@"Comsat Station",
										@"Nuclear Silo",
										@"Supply Depot",
										@"Refinery",
										@"Barracks",
										@"Academy",
										@"Factory",
										@"Starport",
										@"Control Tower",
										@"Science Facility",
										@"Covert Ops",
										@"Physics Lab",
										@"Unused - Was Starbase?",
										@"Machine Shop",
										@"Unused - Was Repair Bay?",
										@"Engineering Bay",
										@"Armory",
										@"Missile Turret",
										@"Bunker",
										@"Norad II",
										@"Ion Cannon",
										@"Uraj Crystal",
										@"Khalis Crystal",
										@"Infested Command Center",
										@"Hatchery",
										@"Lair",
										@"Hive",
										@"Nydus Canal",
										@"Hydralisk Den",
										@"Defiler Mound",
										@"Greater Spire",
										@"Queen's Nest",
										@"Evolution Chamber",
										@"Ultralisk Cavern",
										@"Spire",
										@"Spawning Pool",
										@"Creep Colony",
										@"Spore Colony",
										@"Unused  Building",
										@"Sunken Colony",
										@"Overmind (With Shell)",
										@"Overmind",
										@"Extractor",
										@"Mature Chrysalis",
										@"Cerebrate",
										@"Cerebrate Daggoth",
										@"Unused  Building 5",
										@"Nexus",
										@"Robotics Facility",
										@"Pylon",
										@"Assimilator",
										@"Unused  Building",
										@"Observatory",
										@"Gateway",
										@"Unused  Building",
										@"Photon Cannon",
										@"Citadel of Adun",
										@"Cybernetics Core",
										@"Templar Archives",
										@"Forge",
										@"Stargate",
										@"Stasis Cell/Prison",
										@"Fleet Beacon",
										@"Arbiter Tribunal",
										@"Robotics Support Bay",
										@"Shield Battery",
										@"Khaydarin Crystal Formation",
										@"Temple",
										@"Xel'Naga Temple",
										@"Mineral Field (Type 1)",
										@"Mineral Field (Type 2)",
										@"Mineral Field (Type 3)",
										@"Cave",
										@"Cave-in",
										@"Cantina",
										@"Mining Platform",
										@"Independant Command Center",
										@"Independant Starport",
										@"Independant Jump Gate",
										@"Ruins",
										@"Kyadarin Crystal Formation",
										@"Vespene Geyser",
										@"Warp Gate",
										@"PSI Disruptor",
										@"Marker",
										@"Marker",
										@"Marker",
										@"Beacon",
										@"Beacon",
										@"Beacon",
										@"Flag Beacon",
										@"Flag Beacon",
										@"Flag Beacon",
										@"Power Generator",
										@"Overmind Cocoon",
										@"Dark Swarm",
										@"Floor Missile Trap",
										@"Floor Hatch",
										@"Left Upper Level Door",
										@"Right Upper Level Door",
										@"Left Pit Door",
										@"Right Pit Door",
										@"Floor Gun Trap",
										@"Left Wall Missile Trap",
										@"Left Wall Flame Trap",
										@"Right Wall Missile Trap",
										@"Right Wall Flame Trap",
										@"Start Location",
										@"Flag",
										@"Young Chrysalis",
										@"Psi Emitter",
										@"Data Disc",
										@"Khaydarin Crystal",
										@"Mineral Cluster Type 1",
										@"Mineral Cluster Type 2",
										@"Vespene Gas Orb Type 1",
										@"Vespene Gas Orb Type 2",
										@"Vespene Gas Sac Type 1",
										@"Vespene Gas Sac Type 2",
										@"Vespene Gas Tank Type 1",
										@"Vespene Gas Tank Type 2",
										NULL];
	[unitNames retain];
	}
	return unitNames;
}

@end
